﻿using System;

namespace Arrays
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 1;

            int[] b = new int[3];
            b[0] = 1;
            b[1] = 15;
            b[2] = -5;

            //Console.WriteLine(b[1]);

            //=======================

            //int[] c = new int[3] { 1, 15, -5 };
            int[] c = new int[] { 1, 15, -5 };

            //=================================

            int n = 100;

            double[] x = new double[n];
            double[] y = new double[n];
            
            for (int i = 0; i < n; i++)
            {
                x[i] = i + 1;
                y[i] = x[i] * x[i]; // Math.Pow(i, 2);
            }

            for (int i = 0; i < n; i++)
            {
                //Console.WriteLine(x[i] + ": " + y[i]);
                Console.WriteLine($"{x[i]}\t\t{y[i]}\n"); // \t - horizontal tab, \n - new line
            }

            Console.ReadKey();
        }
    }
}
